{% extends "merchant/merchant_base.html" %}

{% block title %} 登录{% endblock%}
{% block content %}
  <h1>登录</h1>
  {% for item in error %}
    <p style="color:red;">{{item}}</p>
  {% endfor %}
      
  <form action="" method="post">
  {% csrf_token %} 
    <table>
      {{ form.as_table }}
    </table>
    
    <input type="submit" value="登录">
    <br>
    <a href={% url 'merchant:merchant_registe' %}>注册</a>
  </form>
{% endblock %}